﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Events/201205/MP/BaseSelf.Master" AutoEventWireup="true" CodeBehind="Selection.aspx.cs" Inherits="SuuntoWebsite.Events._201205.Selection" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head_Title" runat="server">商品选择</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Head_Meta" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Head_Css" runat="server">
<link href="./CSS/default.css" type="text/css" rel="stylesheet"/>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Head_Script" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Body_Top" runat="server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Body_Content" runat="server">

<div class="Container" style=" background:url('images/bg2.jpg') right bottom no-repeat;">
    <div style=" margin:0 auto; width:900px; height:250px; background:url('images/selection.png') no-repeat;">
        <div style=" padding:40px; font-size:30px; line-height:100%; font-weight:bold; color:#ffffff;">SUUNTO AMBIT<br />THE GPS FOR EXPLORERS</div>
        <div style="color:#ffffff; padding:0 20px; width:860px;">
            --AMBIT 拓野系列 GPS成就无限户外探索：<br />
            探索是人类的天性。无论在户外冒险，越野跑步或高山滑雪时，SUUNTO拓野系列的所有功能是你的最佳伴侣。高科技GPS全球定位功能，独特的三维罗盘和高灵敏度的高度气压计使你随时随地了解所处的方位，准确的高度和天气条件。 <br />
           
        </div>
    </div>
    <div style=" margin:20px auto;">
        <table class="tb">
            <thead>
                <tr>
                    <td colspan="2" style=" width:120px;">产品型号</td>
                    <td style=" width:100px;">数量</td>
                    <td style=" width:100px;">价格</td>
                    <td>预订</td>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="ProductsList" runat="server">
                <ItemTemplate>
                <tr>
                    <td><img src="<%#Eval("[P_Img]") %>" style="width:100px;" /></td>
                    <td width="300"><%#Eval("[P_Type]") %><br /><strong><%#Eval("[P_EnName]") %><br /><%#Eval("[P_Name]") %></strong></td>
                    <td class="b"> <%#FormatCount(Eval("[P_Count]")) %> </td>
                    <td class="b">￥<%#FormatMoney(Eval("[P_Price]"))%></td>
                    <td><input type="image" src="images/Booking.gif" value="<%#Eval("[PKID]") %>" style=" width:66px; height:25px;" /></td>
                </tr>
                </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
        <div style=" width:200px; float:right; padding:10px; border:1px #666666 solid; background:#333333; font-size:12px;">
            <div style=" display:block; border-bottom:1px #666666 dotted;">
            用户：<strong><%=userName %></strong>
            </div>
            订购说明<br />
            1）填写客户基本信息 <br />
            2）完成网络问卷 <br />
            3）挑选产品 <br />
            4）选择取货商场地点<br />
            5）预定并在网络支付200元定金 <br />
            6）获取网络预定“取货校验码”（系统将自动发送到客户邮箱中）<br />
            7）在通知取货的时间内，凭“取货校验码”到所选择的取货商场支付余款 <br />
            8）成功提取货物，并当场免费获取飞利浦太阳能充电器一个
        </div>
    </div>
</div>

</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="Body_Foot" runat="server">
<script type="text/javascript" src="./Scripts/artDialog.js"></script>
<script type="text/javascript" language="javascript">
function windowsShow(content,d) {
	art.dialog({
			beforeunload:function () {
				document.location.href = "appointment-" + d + "<%=rewrite %>";
			},
			fixed: true,
			lock: true,
			title:"提示",
			content: content,
			width: 450,
			height: 30,
			time:2000
//			okValue:'确定',
//			ok: function() {
//				document.location.href = "appointment-" + d + "<%=rewrite %>";
//			}
		});
}
$(function() {
	$('input[type=image]').click(function() {
		//订购处理
		var d = $(this).attr("value");
		$.post("./Handler/Event.ashx", { "flag": "count", "pkid": d }, function(msg) {
			if (msg == "true")
			{
				var params = { pd: d };
				document.location.href = "store-" + d + "<%=rewrite %>";
			}
			else {
				windowsShow("非常抱歉，库存不足,我们为您做预定处理!", d);
			}
		}, "html");
	});
});

</script>
</asp:Content>
